<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript">
   $(document).ready(function() {
      $('#gallery').cycle();
     
   });
</script>
<div id="main">
   <div id="gallery">
   		<c:forEach var="avo" items="${requestScope.main.mainAuctionList}">
					<c:choose>
							<c:when test="${sessionScope.advo!=null}">
								<a href="${initParam.root}admin/adminShowContent.do?boardNo=${avo.boardNo}&pageNo=1&deleteConfirmNo="><img src="${initParam.root}upload/${avo.attatchedFile}"></a>
							</c:when>
							<c:otherwise>
								<a href="${initParam.root}auction/showContent.do?boardNo=${avo.boardNo}&pageNo=1"><img src="${initParam.root}upload/${avo.attatchedFile}"></a>
							</c:otherwise>
					</c:choose>				
		</c:forEach>
     
   </div>

				<table class="notice1" >
					<thead>
					<tr>
						<th ><span class="index_th">공지사항</span>
						</th>
						<th>
						<span style="margin-left: 50px" class="index_th">
							<a href="${initParam.root}notice/getNoticeBoardList.do">more</a>
						</span>
						</th>
						</tr>
					</thead>
					<c:forEach var="nvo" items="${requestScope.main.mainNoticeList}">
						<tr>
						<td colspan="2" >
						<a href="${initParam.root}notice/showNoticeContent.do?noticeNo=${nvo.noticeNo}&pageNo=1">${nvo.noticeTitle}</a>						
						</td>
					</tr>	
					</c:forEach>
				</table>
							
				<table class="notice2">
					<thead>
					<tr>
						<th>
						<span class="index_th">최근경매</span>
						</th>

					</tr>
					</thead>
					<c:forEach var="avo" items="${requestScope.main.mainAuctionList}">
						<tr>
							<c:choose>
								<c:when test="${sessionScope.advo!=null}">
									<td><a href="${initParam.root}admin/adminShowContent.do?boardNo=${avo.boardNo}&pageNo=1&deleteConfirmNo=">${avo.boardTitle}</a></td>
								</c:when>
								<c:otherwise>
									<td><a href="${initParam.root}auction/showContent.do?boardNo=${avo.boardNo}&pageNo=1">${avo.boardTitle}</a></td>
								</c:otherwise>
							</c:choose>

						</tr>
					</c:forEach>
				</table>
	
	</div>

